package com.cx.mall.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * 短信登录Demo启动类
 * 启用Nacos配置、服务发现、异步功能
 */
@SpringBootApplication(exclude = {SecurityAutoConfiguration.class})
@EnableDiscoveryClient // 启用服务发现（如需注册到Nacos服务端）
@RefreshScope // 支持配置动态刷新（修改Nacos配置后无需重启服务）
@EnableAsync // 启用异步方法支持（配合@Async注解）
public class SmsLoginApplication {
    public static void main(String[] args) {
        SpringApplication.run(SmsLoginApplication.class, args);
        System.out.println("短信登录Demo启动成功！");
    }
}